package com.pearadmin.pro.modules.paper.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pearadmin.pro.modules.paper.dto.RepoDTO;
import com.pearadmin.pro.modules.paper.dto.response.RepoRespDTO;
import com.pearadmin.pro.modules.paper.entity.Repo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 题库Mapper
 * @author ZhouXingYun
 * @date 2022/5/25 15:24
 */
@Mapper
public interface RepoMapper extends BaseMapper<Repo> {

    /**
     * 分页查询题库
     * @param page
     * @param query
     * @return
     */
    IPage<RepoRespDTO> paging(Page page, @Param("query") RepoDTO query);

    void refreshStat(String repoId);
}
